/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package minValue;

/**
 *
 * @author mj
 */
class Point {

    private double x;
    private double y;

    Point(double xx, double yy) {

        x = xx;
        y = yy;
    }

    double getX() {

        return x;
    }

    double getY() {
        return y;
    }

    int compare(Point x2) {
        double u = y - x2.getY();
        if (u == 0) {
            return 0;
        } else if (u > 0) {
            return 1;
        }
        return -1;
    }
}
